/**
 * Created by asus on 2017/4/16.
 */
abstract public class StaffMember {
    protected String name;
    protected String address;
    protected String phone;
    
    public StaffMember (String eName,String eAddress,String ephone){
        name = eName;
        address = eAddress;
        phone = ephone;
    }
    public abstract double pay();
    public String toString (){
        String result = "Name:" + name + "\n";
        result += "Address:"+ address + "\n";
        result += "Phone:" + phone;
        return result;

    } 
}
